package org.example.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Data
@Alias("order")
@NoArgsConstructor
@AllArgsConstructor
public class OrderTbl implements Serializable {
    private static final long serialVersionUID = 1304440777424186194L;
    private String id;

    private String commodityCode;

    private int count;

    private int money;

    private String userId;

    public String toString(){
        return "order id:" + id + " userId:" + userId + " commodityCode:" + commodityCode + " count:" + count + " money" + money;
    }
}
